﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using DevExpress.Skins.Info;
using DevExpress.Skins;

namespace DevExpress.CrmDemo.Win
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            SkinBlobXmlCreator skinCreator = new SkinBlobXmlCreator("MetroDark", "DevExpress.CrmDemo.Win.SkinData.", typeof(Program).Assembly, null);

            SkinManager.Default.RegisterSkin(skinCreator);
            LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("MetroDark");

            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.CrmDemo.Win.Data.DataGenerator.CreateSampleDocuments();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            login theLogin = new login();
            theLogin.ShowDialog();
            if (theLogin.DialogResult.Equals(DialogResult.OK))
            {
                theLogin.Close();
                Application.Run(new MainForm());
            }


        }
    }
}
